package com.erp.controller.sales;


import org.apache.commons.codec.digest.Md5Crypt;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 授权服务器相关控制方法
 */
@RestController
public class OauthController {


    @RequestMapping("/code")
    public String getCode(){
        return Md5Crypt.apr1Crypt(Math.random()*1000+"");
    }
    @RequestMapping("/token")
    public String getToken(String code){
        return "token";
    }
    @RequestMapping("/userInfo")
    public String getUserInfo(){
        return "userInfo";
    }
}
